package com.hznu.stmanage.service;

import com.hznu.stmanage.dao.*;
import com.hznu.stmanage.entity.Student;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by J_Vino on 16/3/6.
 */
public class BaseService {

    @Autowired
    SqlSessionTemplate sqlSessionTemplate;

    public DiaryMapper getDiaryMapper(){
        return sqlSessionTemplate.getMapper(DiaryMapper.class);
    }

    public LogMapper getLogMapper(){
        return sqlSessionTemplate.getMapper(LogMapper.class);
    }

    public PracticeInfoMapper getPracticeInfoMapper(){
        return sqlSessionTemplate.getMapper(PracticeInfoMapper.class);
    }

    public RecruitInfoMapper getRecruitInfoMapper(){
        return sqlSessionTemplate.getMapper(RecruitInfoMapper.class);
    }

    public ResumeStudentMapper getResumeStudentMapper(){
        return sqlSessionTemplate.getMapper(ResumeStudentMapper.class);
    }

    public SummaryMapper getSummmaryMapper(){
        return sqlSessionTemplate.getMapper(SummaryMapper.class);
    }

    public TutorInfoMapper getTutorInfoMapper(){
        return sqlSessionTemplate.getMapper(TutorInfoMapper.class);
    }

    public WeeklyMapper getWeeklyMapper(){
        return sqlSessionTemplate.getMapper(WeeklyMapper.class);
    }

    public StudentMapper getStudentMapper(){
        return sqlSessionTemplate.getMapper(StudentMapper.class);
    }

    public TeacherMapper getTeacherMapper(){
        return sqlSessionTemplate.getMapper(TeacherMapper.class);
    }

    public ManagerMapper getManagerMapper(){
        return sqlSessionTemplate.getMapper(ManagerMapper.class);
    }
}
